public class StringNode {
	private String label;
	private StringNode leftChild = null;
	private StringNode rightChild = null;
	
	public StringNode(String label) {
		this.label=label;
	}
	
	public StringNode(String label, boolean left, StringNode node) {
		if (left) {
			this.leftChild=node;
		} else {
			this.rightChild=node;
		}
	}
	
	public StringNode(String label,StringNode leftChild, StringNode rightChild) {
		this.leftChild=leftChild;
		this.rightChild=rightChild;
	}

	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return the leftChild
	 */
	public StringNode getLeftChild() {
		return leftChild;
	}

	/**
	 * @param leftChild the leftChild to set
	 */
	public void setLeftChild(StringNode leftChild) {
		this.leftChild = leftChild;
	}

	/**
	 * @return the rightChild
	 */
	public StringNode getRightChild() {
		return rightChild;
	}

	/**
	 * @param rightChild the rightChild to set
	 */
	public void setRightChild(StringNode rightChild) {
		this.rightChild = rightChild;
	}
}
